package stu.aistar.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {

  private Integer id;
  private String ordersNo;
  private Double total;
  private Double price;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date time;
  private String state;
  private Integer userId;
  private String movieName;
  private String seats;
  private String userName;
  private String other2;
}
